import { DEFAULT_LAYOUT } from '@/router/constans';

export default {
  path: '/patient',
  name: 'Patient',
  redirect: { name: 'PatientList' },
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '患者列表',
    requiresAuth: true,
    order: 1,
    hideChildrenInMenu: true,
    iconfont: 'icon-tongxunlu',
  },
  children: [
    {
      path: 'patient-list',
      name: 'PatientList',
      component: () => import('@/views/patient/index.vue'),
      meta: {
        locale: '患者列表',
        requiresAuth: true,
        permission: 'patient:list',
      },
    },
    {
      path: 'patient-map/:id/:name',
      name: 'PatientMap',
      component: () => import('@/views/patient/map.vue'),
      meta: {
        locale: '患者轨迹',
        requiresAuth: true,
      },
    },
    {
      path: 'patient-detail/:id?/:name?/:tab?',
      name: 'PatientDetail',
      component: () => import('@/views/patient/detail.vue'),
      meta: {
        locale: '患者轨迹',
        requiresAuth: true,
      },
    },
  ],
};
